Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update show_hsrp.py #768

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

dafe84
Copy link

@dafe84 dafe84 commented Jul 4, 2023

Parsing fails if the p9.match(line) parses the second case of your example (bfd enabled but interface unknown)

hsrp_detail_dict[interface]['bfd']['enabled'] gets set in line 668 but line 669 MAY prevent that hsrp_detail_dict[interface]['bfd']['detection_multiplier'] & hsrp_detail_dict[interface]['bfd']['interval'] gets written. Therefore the later 2 should be optional.

Description

hsrp_detail_dict[interface]['bfd']['enabled'] gets set in line 668 but line 669 will prevent that hsrp_detail_dict[interface]['bfd']['detection_multiplier'] & hsrp_detail_dict[interface]['bfd']['interval'] gets written. Therefore the later 2 should be optional.

Motivation and Context

Parsing fails if BFD is enabled on a HSRP interface in INIT State / down

Impact (If any)

Screenshots:

Checklist:

  • I have updated the changelog.
  • I have updated the documentation (If applicable).
  • I have added tests to cover my changes (If applicable).
  • All new and existing tests passed.
  • All new code passed compilation.

Parsing fails if the p9.match(line) parses the second case of your example (bfd enabled but interface unknown)

hsrp_detail_dict[interface]['bfd']['enabled'] gets set in line 668
but line 669 will prevent that hsrp_detail_dict[interface]['bfd']['detection_multiplier'] & hsrp_detail_dict[interface]['bfd']['interval'] gets written. Therefore the later 2 should be optional.
@dafe84 dafe84 requested a review from a team as a code owner July 4, 2023 11:55
@dafe84 dafe84 requested review from GerriorL and nitikish July 4, 2023 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant